<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="Snippets settings, snippet, File Drop"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<script defer src="../../Shared/js/toc.js"></script>
	
	<title>Change Snippets settings in CotEditor on Mac</title>
</head>

<body>
<a name="settings_snippets"></a>

<h1>Change Snippets settings in CotEditor on Mac</h1>

<p>In the CotEditor app <img class="appicon" srcset="../../Shared/gfx/icon_32x32@2x.png 2x" alt=""/> on your Mac, use Snippets settings to create preset text that you can insert with a command or by dropping a file onto the editor.</p>

<p>To change these settings, choose CotEditor &gt; Settings, then click Snippets.</p>


<table class="settings">
<caption>Command</caption>
<thead>
	<tr><th>Option</th><th>Description</th></tr>
</thead>

<tbody>
	<tr>
		<th>Command definitions</th>
		<td>Define commands for inserting snippets. These commands appear in the Text &gt; Insert Snippet menu.<ul>
			<li><em>Syntax</em>: The snippet is available only in documents using this syntax. If this field is empty (All), the snippet can be used in any document.</li>
			<li><em>Name</em>: The name of the command as it appears in the menu.</li>
			<li><em>Key</em>: A keyboard shortcut to insert this snippet. A shortcut is optional and can be left blank.</li>
			</ul></td>
	</tr>
	<tr>
		<th>Insertion format</th>
		<td>Set the text inserted by the command selected in the list above.
			<ul>
				<li>If the snippet contains <code>&lt;&lt;&lt;CURSOR&gt;&gt;&gt;</code>, the variable is removed when the snippet is inserted, and the insertion point moves to that location.</li>
			</ul></td>
	</tr>
</tbody>
</table>


<table class="settings">
<caption>File Drop</caption>
<thead>
	<tr><th>Option</th><th>Description</th></tr>
</thead>

<tbody>
	<tr>
		<th>File drop definitions</th>
		<td>Define how File Drop behaves. When files are dropped into the editor and the defined conditions are met, CotEditor inserts the corresponding text at the drop location.<ul>
			<li><em>Syntax</em>: The rule applies only when a file is dropped into a document using this syntax. Leave this field empty (All) to apply the rule to all documents.</li>
			<li><em>Extensions</em>: The rule applies only to files with the listed extensions. Leave this field empty (All) to apply the rule to all files. Enter extensions without a leading period, separated by commas.</li>
			<li><em>Description</em>: Optional field for leaving a note about the rule. This field doesn’t affect File Drop behavior.</li>
			</ul>
		</td>
	</tr>
	<tr>
		<th>Insertion format</th>
		<td>Set the text inserted when the selected File Drop rule is applied.
			<ul>
				<li>You can use CotEditor variables in the insertion format. These variables are replaced with information from the dropped file. See <a href="about_filedrop.html">Write insertion format for File Drop</a> for each variable’s detail.</li>
			</ul>
		</td>
	</tr>
</tbody>
</table>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="howto_filedrop.html">Drop files to editor in CotEditor on Mac</a></li>
	<li><a href="about_filedrop.html">Write insertion format for File Drop in CotEditor on Mac</a></li>
	<li><a href="settings.html">Change settings in CotEditor on Mac</a></li>
</ul>
</section>

</body>
</html>
